package linda.server;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;

import linda.Callback;
import linda.Tuple;
import linda.Waiter;

public class RemoteCallback extends UnicastRemoteObject implements InterfaceRemoteCallback {
	private Callback callback;
	protected RemoteCallback(Callback callback) throws RemoteException {
		super();
		this.callback = callback;
		// TODO Auto-generated constructor stub
	}

	@Override
	public void call(Tuple t) throws RemoteException {
		callback.call(t);
	}

}
